package com.ruoyi.iot.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 考勤机对象 iot_attendance_machine
 * 
 * @author 陈江灿
 * @date 2025-02-14
 */
public class IotAttendanceMachine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 考勤机id */
    private Long attendanceMachineId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String sn;

    /** 状态（0正常 1离线） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=离线")
    private String status;

    /** 设备型号 */
    @Excel(name = "设备型号")
    private String model;

    public void setAttendanceMachineId(Long attendanceMachineId) 
    {
        this.attendanceMachineId = attendanceMachineId;
    }

    public Long getAttendanceMachineId() 
    {
        return attendanceMachineId;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setSn(String sn) 
    {
        this.sn = sn;
    }

    public String getSn() 
    {
        return sn;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("attendanceMachineId", getAttendanceMachineId())
            .append("deviceName", getDeviceName())
            .append("sn", getSn())
            .append("status", getStatus())
            .append("model", getModel())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
